package com.fqgj.xjd.user.dao;

import com.fqgj.common.base.BaseMapper;
import com.fqgj.xjd.user.entity.UserBehaviorDeviceEntity;

import java.util.Map;

/**
 * User: zhangxingyun
 * Date: 2017-07-20
 * Time: 18:38:53.045
 */

public interface UserBehaviorDeviceDao extends BaseMapper<UserBehaviorDeviceEntity> {

    UserBehaviorDeviceEntity selectLastOneByParams(Map<String, Object> params);

    UserBehaviorDeviceEntity selectDeviceByUserCode(String userCode);

    /**
     * @param clientId
     * @return
     */
    UserBehaviorDeviceEntity selectDeviceByClientId(String clientId);

    UserBehaviorDeviceEntity selectDeviceByUserCodeAndClientId(String userCode, String clientId);

}
